//using default by empty
var common = angular.module('common', []);
/**
 * get the config file and initialize
 */
var config={
    "Users": {
        "url": "/users",
        "id": "id"
    },
    "Mails":{
        "url":"/mail/read"
    },
    "Locations":{
        "url":"/locs"
    },
    "Bizs":{
        "url":"/bizs"
    },
    "Mgmts":{
        "url":"/mgmts"
    },
    "Comments":{
        "url":"/comments"
    }
};
var dfg = new Doufugan(config);
//extends JQuery
$.extend({
    _setInner: dfg._setInner,
    _getInner: dfg._getInner,
    _extend: dfg.extend
});
common.service('dfg', function () {
    return dfg;
});
common.service('commonService', function (dfg) {
    return dfg.commonService;
});
//$.getJSON('/dfg.conf.json', {}, function (json) {
//
//});

